package com.vhall.component.controller.account.facade.adm;

import com.vhall.component.entity.account.vo.*;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 操作account
 *
 * @author longzhen.gong
 * @date 2021/6/9 16:55
 */
@Api(tags = "AccountController", value = "会员收藏管理")
@FeignClient(value = "AdmAccountFacade",
        path = "/v4/account/admin")
public interface AdmAccountFacade {


    /**
     * 获取信息
     *
     * @param id id
     * @return 返回值
     */
    @GetMapping("/info")
    AccountVO info(@RequestParam("id") String id);

    /**
     * 添加数据
     *
     * @param vo 参数
     * @return 返回值
     */
    @PostMapping("/add")
    AdmAccountAddRspVO add(@Validated AdmAccountAddVO vo);

    /**
     * 列表
     *
     * @param vo 参数
     * @return 返回值
     */
    @GetMapping("/list")
    AdmAccountListRspVO list(@Validated AdmAccountListReqVO vo);

    /**
     * admin更新用户信息
     *
     * @param vo 参数
     * @return 返回值
     */
    @PostMapping("/edit")
    Boolean edit(@Validated AdmAccountEditReqVO vo);

    /**
     * admin修改用户状态
     *
     * @param vo 参数
     * @return 返回值
     */
    @PostMapping("/edit-status")
    Boolean editStatus(@Validated AdmAccountEditStatusReqVO vo);


}
